<!DOCTYPE html>
<html>
<head>
	<title>AES-CBC-PKCS7</title>
</head>
<body>
    <script src="https://cdn.bootcdn.net/ajax/libs/crypto-js/4.0.0/crypto-js.min.js"></script>
    <script type="text/javascript">
      const s = 'RZsfYZjYXF3T2/e6FRGXQ10xWoUIKfdCTeRWu+lUGZEjMHevRvUCN592DedAuJuVRfsklC2LILevZC2Ffgf2FPLYkbg2kGfuL4MGJl/ugy+ctz1xuWePjsROaQ/vM3U4DdUVAxlyL5ljXNaV5ccm8ul7q0g86Rx8O8yHdi9uOpPfMu7klIgnKtLwvcS2KvW0WCSKXKxKC+7yHKNMlaalM+2cqcqWtDZ9N4tetxt1s4PZ5wuzWR3s4ez/fWjToP+XrGeLkhiYDruE/RGw2Pag46NTtnAIonn2OQ4+ryApU0AsKJByEGXJfNXc7JBYLazg';
      const k = '$HBRLrEO6Ow/7DP)';
      function decryption(data) {
            let key = CryptoJS.enc.Utf8.parse(k);  // 加密秘钥
            let iv = CryptoJS.enc.Utf8.parse(k);   //  矢量
            let baseResult=CryptoJS.enc.Base64.parse(data);   // Base64解密
            let ciphertext=CryptoJS.enc.Base64.stringify(baseResult);     // Base64解密
            let decryptResult = CryptoJS.AES.decrypt(ciphertext,key, {    //  AES解密
                iv: iv,
                mode: CryptoJS.mode.CBC,
                padding: CryptoJS.pad.Pkcs7
            });
            return CryptoJS.enc.Utf8.stringify(decryptResult);
        }
        console.log(decryption(s));
    </script>
</body>
</html>